<template>
    <div>
      <!-- navbar -->
      <div class="top">
        <div class="top_header">
          <a class="top_city" href="#">南宁<i class="fa-down"></i></a>
          <h1>车太多出行服务</h1>
          <span class="top_user"  @click="$router.push({name:'Account'})"><i class="fa-user" aria-hidden="true"></i></span>
        </div>
      </div>
      <!-- end navbar -->
      <!-- slide -->
      <div class="m-slider">
        <md-swiper
          ref="swiper"
          :is-prevent="false">
          <md-swiper-item :key="$index" v-for="(item, $index) in sliders"   @click.native="dede(item.id)">
            <img :src="item.img" alt=""  >
          </md-swiper-item>
        </md-swiper>
      </div>
      <!-- end slide -->
      <!-- category -->
      <div class="menu-box">
        <div class="nav">
          <li @click="$router.push({name:'nlist'})">
              <img src="../assets/images/nav01.png" />
              <p>快捷租车</p>
          </li>
          <li @click="showDelay">

            <img src="../assets/images/nav02.png" />
            <p>机场接送</p>

          </li>
    <!--      <li @click="$router.push({name:'flight'})">

            <img src="../assets/images/nav02.png" />
            <p>机场接送</p>

          </li>-->
          <li @click="showing">
            <img src="../assets/images/nav03.png" />
            <p>私享服务</p>
          </li>
          <li @click="$router.push({name:'Account'})">

            <img src="../assets/images/nav04.png" />
            <p>成为车主</p>

          </li>
        </div>
      </div>
      <!-- end category -->

      <!-- b-seller -->
      <div class="b-seller">
        <div class="section-title">
          <h3>优惠推荐</h3>
          <a href="javascript:;" @click="$router.push({name:'nlist'})">全部</a>
        </div>
        <div class="seller-list">
          <li v-for="item of homecarlist" :key="item.cid" @click="order(item.cid)">
            <img :src="item.firimg">
            <h3>{{item.name}}</h3>
            <p><span>{{item.fourfee}}/4小时</span><span>{{item.eightfee}}/8小时</span><span>{{item.dayfee}}/天</span></p>
          </li>
        </div>
      </div>
      <md-landscape v-model="showMaskClosable" :mask-closable="true">
            <div class="flightchoose" >
               <div @click="$router.push({name:'flight'})">
                 <div class="flighttitle">机场专车</div>
                 <div class="flightdesc">
                   随叫随到,适合多人出行
                 </div>
               </div>
               <!--<div @click="$router.push({name:'flightline'})">-->
               <div @click="showClose">
                 <div class="flighttitle">专线订座</div>
                 <div class="flightdesc">
                   30分钟一班次,便捷实惠
                 </div>
               </div>
            </div>
      </md-landscape>
    </div>
</template>

<script>

import { Toast } from 'mand-mobile'
import p1 from '@/assets/pp1.jpg'
import p2 from '@/assets/pp2.jpg'
import p3 from '@/assets/pp3.jpg'
export default {
  name: 'Home',
  data () {
    return {
      showMaskClosable: false,
      sliders: [
        {img: p1},
        {img: p2},
        {img: p3}
      ],
      homecarlist: []
    }
  },
  created: async function () {
    if (!window.localStorage.getItem('wxopenid')) {
      window.location.href = 'http://tmc.guotaijinxing.com/wx/entrytmc'
    } else {
      const _oid = window.localStorage.getItem('wxopenid')
      const reurl = `http://tmc.guotaijinxing.com/wx/entrytmc?relId=` + _oid
      console.log(reurl)
      wx.ready(function () { // 需在用户可能点击分享按钮前就先调用
        wx.onMenuShareAppMessage({
          title: '欢迎使用车太多的租车服务', // 分享标题
          desc: '最好用的高端汽车租赁平台', // 分享描述
          link: reurl, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
          imgUrl: 'http://tmc.guotaijinxing.com/public/aaa.png', // 分享图标
          success: function () {
            // 用户点击了分享后执行的回调函数
          }
        })

        wx.onMenuShareTimeline({
          title: '欢迎使用车太多的租车服务', // 分享标题
          link: reurl, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
          imgUrl: 'http://tmc.guotaijinxing.com/public/aaa.png', // 分享图标
          success: function () {
            // 用户点击了分享后执行的回调函数
          }})

        wx.onMenuShareQQ({
          title: '欢迎使用车太多的租车服务', // 分享标题
          desc: '最好用的高端汽车租赁平台', // 分享描述
          link: reurl, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
          imgUrl: 'http://tmc.guotaijinxing.com/public/aaa.png', // 分享图标
          success: function () {
            // 用户确认分享后执行的回调函数
          },
          cancel: function () {
            // 用户取消分享后执行的回调函数
          }
        })

        wx.onMenuShareWeibo({
          title: '欢迎使用车太多的租车服务', // 分享标题
          desc: '最好用的高端汽车租赁平台', // 分享描述
          link: reurl, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
          imgUrl: 'http://tmc.guotaijinxing.com/public/aaa.png', // 分享图标
          success: function () {
            // 用户确认分享后执行的回调函数
          },
          cancel: function () {
            // 用户取消分享后执行的回调函数
          }
        })

        wx.onMenuShareQZone({
          title: '欢迎使用车太多的租车服务', // 分享标题
          desc: '最好用的高端汽车租赁平台', // 分享描述
          link: reurl, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
          imgUrl: 'http://tmc.guotaijinxing.com/public/aaa.png', // 分享图标
          success: function () {
            // 用户确认分享后执行的回调函数
          },
          cancel: function () {
            // 用户取消分享后执行的回调函数
          }
        })

        /*
          wx.updateAppMessageShareData({
            title: '欢迎使用车太多的租车服务', // 分享标题
            desc: '最好用的高端汽车租赁平台', // 分享描述
            link: reurl, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: 'http://tmc.guotaijinxing.com/public/aaa.png' // 分享图标
          }, function (res) {
            // 这里是回调函数
          })

          wx.updateTimelineShareData({
            title: '欢迎使用车太多的租车服务', // 分享标题
            link: reurl, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: 'http://tmc.guotaijinxing.com/public/aaa.png' // 分享图标
          }, function (res) {
            // 这里是回调函数
          }) */
      })
    }
    this.getads()
  },
  mounted: async function () {
    Toast.loading('数据加载中...')
    let _res = await this.$api.post('/getlist')
    Toast.hide()
    if (_res.data.state) {
      let _carlist = _res.data.data
      for (let v of _carlist) {
        for (let _v of v.feestanders) {
          if (_v.hours === 24) {
            v.dayfee = _v.fee
          } else if (_v.hours === 8) {
            v.eightfee = _v.fee
          } else if (_v.hours === 4) {
            v.fourfee = _v.fee
          }
        }
      }

      this.homecarlist = [_carlist[6], _carlist[5], _carlist[4], _carlist[3]]
    }
  },
  methods: {
    showClose: function () {
      return Toast.info('当前车辆繁忙，请稍后再试。')
    },
    showDelay () {
      this.showMaskClosable = true
    },
    showing () {
      Toast.info('即将推出,敬请期待', 1500)
    },
    async getads () {
      let res = await this.$api.post('/admin/getads')
      if (res.data.state) {
        this.sliders = res.data.data.rows
      }
    },
    async dede (id) {
      console.log(id)
      this.$router.push({name: 'dede', params: {id}})
    },
    order: async function (cid) {
      this.$store.commit('updateOrder', {cid: cid})
      this.$router.push({ name: 'Order', params: {cid} })
    }
  }
}
</script>

<style scoped>

  .flightchoose{
    background: rgba(233,233,233,.9);
    padding:15px;
  }

  .flightchoose > div{
    border:1px solid #999;
    border-radius: 30px;
    height: 85px;
  }
  .flightchoose .flighttitle{
    line-height: 45px;
    font-weight: bolder;
  }
  .flightchoose > div:first-child{
    margin-bottom: 15px;
  }
  body {
    font-family: 'Roboto', sans-serif;
    color: #888;
    font-size: 13px;
    background: #fff;
  }

  h1,h2,h3,h4,h5,h6 {
    line-height: 110%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
  }

  ul, ol{
    list-style: none;
  }
  li{
    list-style-type: none;
  }

  p {
    margin: 8px 0;
  }

  a {
    color: #111;
    text-decoration: none;
  }

  a:hover {
    color: #111;
  }

  a.link-color {
    color: #e82954;
  }

  a.link-color:hover {
    color: #e82954;
  }
  .top {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
  }
  .top_header {
    background:url('../assets/images/top-bj.jpg') no-repeat center;
    background-size:100% 100%;
    width: 100%;
    position: relative;
    height: 50px;
    box-shadow: rgba(87, 135, 253, 0.9) 0px 0px 15px;
  }
  .top_header a {
    margin: 0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  .top_city {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    width: auto;
    height: 50px;
    position: absolute;
    left: 20px;
    top: 0;
    line-height: 50px;
    font-size: 16px;
  }
  .fa-down{
    width: 20px;
    height: 11px;
    background:url('../assets/images/down.png') no-repeat center;
    background-size:12px auto;
  }

  .fa-user{
    width: 22px;
    height: 26px;
    background:url('../assets/images/ico-user.png') no-repeat center;
    background-size:20px auto;

  }
  .top_header h1 {
    text-align: center;
    line-height: 50px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
  }
  .top_city i {
    font-size: 16px;
    margin-top: 2px;
  }
  .top_user {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    width: auto;
    height: 45px;
    position: absolute;
    right: 15px;
    top: 2px;
  }
  .top_user i {
    font-size: 30px;
  }

  .m-slider {
    overflow: hidden;
    width: 96%;
    height: 160px;
    position: relative;
    margin:60px auto 0 auto;
  }

  .m-slider > img{
    width: 100%;
    height: 160px;
  }

  .slider-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 100%;
    -webkit-transform: translate3d(0px, 0px, 0px);
    transform: translate3d(0px, 0px, 0px);
    position: relative;
    z-index: 1;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
  }

  .slider-item {
    width: 100%;
    height: 100%;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
  }

  .slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius:10px;
  }
  .slider-pagination {
    text-align: right;
    position: absolute;
    width: 30%;
    z-index: 2;
    right: 36%;
    bottom: 15px;
    pointer-events: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .slider-pagination > .slider-pagination-item {
    margin: 0 .25rem;
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 100%;
    background-color: rgba(255,255,255,0.4);
  }

  .slider-pagination > .slider-pagination-item.slider-pagination-item-active {
    background-color: #f0f902;
    border-radius: 10px;
  }

  .menu-box{
    width: 96%;
    height: auto;
    overflow: hidden;
    background: rgba(87, 135, 253, 0.2);
    margin: 10px auto;
    box-shadow: rgba(87, 135, 253, 0.6) 0px 0px 10px;
    border-radius: 8px;
  }
  .nav{
    width: 100%;
    height: auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .8);
    padding-top: 5px;
  }
  .nav li {
    width: 25%;
    float: left;
    text-align: center;
    padding: 12px 0;
  }
  .nav li a{
    display: block;
  }
  .nav li img{
    width: 50px;
    height: 50px;
  }
  .nav li p{
    font-size: 15px;
    color: #8f8e8e;
    margin-top: 5px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title a {
    color: #333;
    font-size: 14px;
    line-height:20px;
    width: 40px;
    right: 10px;
    position: absolute;
    text-align: left;
    background:url('../assets/images/fa-more.png') no-repeat right;
    background-size:8px auto;
  }
  .section-title h3 {
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    left: 20px;
    width: 160px;
    line-height: 20px;
  }

  .pages-title h3 {
    text-transform: uppercase;
    font-size: 18px;
  }

  .date i {
    font-size: 13px;
    margin-right: 5px;
  }

  .cars-list li{ height: 95px; overflow: hidden; padding: 5px; margin: 10px auto;box-shadow: rgba(87, 135, 253, 0.3) 0px 0px 15px;width: 96%;border-radius: 6px;}
  .cars-list li:first-child{border-top: 0px solid #f2f2f2;}
  .cars-list li img{ float: left; width: 110px; height:90px; border-radius: 2px;}
  .cars-list li h2{font-size: 16px; color: #000;line-height: 28px;}
  .cars-list li p{font-size: 14px; overflow: hidden; line-height: 20px; height: 20px;}
  .cars-list li p a{color: #999;}
  .cars-list li:last-child{ margin-bottom: 0;}
  .cars-list li p span {
    color: #fff;
    font-size: 12px;
    background: #f38f0a;
    border-radius: 4px;
    margin-right: 5px;
    padding: 2px 5px;

  }
  /*sidebar*/

  .sidebar-panel .side-nav .user-view > img {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
  }

  .sidebar-panel .side-nav .user-view span {
    margin-top: 12px;
    display: block;
  }

  .sidebar-panel .side-nav .user-view .background img {
    width: 100%;
    height: 100%;
  }

  .sidebar-panel .side-nav li > a:hover {
    background: transparent;
  }

  .sidebar-panel .side-nav li > a {
    padding: 0 16px;
    font-weight: 500;
  }

  .sidebar-panel .side-nav li a i {
    margin-right: 1rem;
    width: auto;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.87);
  }

  .sidebar-panel .side-nav li a > i {
    width: 30px;
    font-size: 16px;
    text-align: center;
  }

  .sidebar-panel .collapsible {
    border: 0;
  }

  .sidebar-panel .side-nav .collapsible-header {
    display: block;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
    font-weight: 500;
    overflow: hidden;
  }

  .sidebar-panel .side-nav .collapsible-header:hover {
    background: transparent;
  }

  .sidebar-panel .side-nav .collapsible-header > i {
    font-size: 16px;
    width: 30px;
    text-align: center;
  }

  .sidebar-panel .side-nav .collapsible-header span i {
    float: right;
    margin: 0;
    width: auto;
    font-size: 15px;
  }

  .sidebar-panel .side-nav .active .collapsible-header span i {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }

  .sidebar-panel .side-nav .collapsible-body li a {
    padding: 0 23.5px 0 61px;
  }

  .sidebar-panel .side-nav li.active {
    background: transparent;
  }

  /*slide*/

  .slide {
    height: 230px;
    margin-top: 55px;
  }

  .slide .slide-content {
    height: 230px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
  }

  .slide .slide-content .mask {
    background-color: rgba(0, 0, 0, 0.10);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .slide .slide-content .mask2 {
    background-color: rgba(0, 0, 0, 0.35);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .slide .slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide .slide-content .button {
    background-color: #ffe404;
    color: #fff;
    margin-top: 5px;
  }

  .slide .slide-content .caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
  }

  .slide .first-slide .caption {
    text-align: center;
  }

  .slide .slide-content .caption h2 {
    font-size: 24px;
    font-weight: 600;
  }

  .slide .slide-content .caption h2,
  .slide .slide-content .caption p {
    color: #fff;
  }

  .slide .slide-content .caption .date {
    background-color: transparent;
  }

  .slide .owl-theme .owl-nav.disabled + .owl-dots {
    position: relative;
    top: -35px;
    margin-bottom: -36px;
  }

  .slide .owl-theme .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    background-color: #fff;
  }

  .slide .owl-theme .owl-dots .owl-dot.active span,
  .owl-theme .owl-dots .owl-dot:hover span {
    background-color: #e82954;
  }

  /* category */

  .category {
    padding-bottom: 0;
    padding-top: 33px;
  }

  .category .row:last-child {
    margin-bottom: 0;
  }

  .category .content {
    text-align: center;
  }

  .category .content i {
    font-size: 28px;
    color: #474747;
  }

  .category .content span {
    display: block;
    margin-top: 5px;
  }

  /* b-seller */

  .b-seller{
    margin: 10px auto;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-top: 20px;
  }
  .seller-list li{
    float: left;
    width: 45%;
    height: 190px;
    margin-right: 2%;
    margin-left: 2%;
    margin-bottom: 10px;
  }

  .seller-list li:last-child {
    margin-bottom: 0;
  }

  .seller-list li img {
    width: 100%;
    border-radius: 2px;
    height: 110px;
  }
  .seller-list h3{
    padding-top: 10px;
    font-size: 15px;
    color: #666;
  }
  .seller-list p {
    color: #e82954;
  }

  .seller-list span {
    color: #fff;
    font-size: 10px;
    background: #f38f0a;
    border-radius: 4px;
    margin-right: 3px;
    padding: 2px;

  }
  /* banner */

  .banner .content img {
    width: 100%;
    display: block;
  }

  /* product home */

  .product-home {
    position: relative;
    padding-bottom: 0;
  }

  .product-home.p-bottom {
    border: 0;
  }

  .product-home.p-bottom.segments {
    padding-bottom: 38px;
    padding-top: 35px;
  }

  .product-home .content img {
    border-radius: 10px;
    width: 100%;
  }

  .product-home .l-more {
    position: absolute;
    top: 35px;
    right: 18px;
  }

  .product-home .l-more a {
    font-size: 14px;
  }

  .product-home .l-more a i {
    font-size: 14px;
    margin-left: 3px;
  }

  .product-home .owl-carousel .owl-stage {
    padding-left: 0 !important;
  }

  /*categories*/

  .categories .collapsible {
    box-shadow: none;
    border-radius: 5px;
  }

  .categories .collapsible-header {
    padding: 16px 10px;
    color: #333;
    border-radius: 5px 5px 0 0;
  }

  .categories .collapsible-header.bor-rad {
    border-radius: 0 0 5px 5px;
  }

  .categories .collapsible-header i {
    font-size: 20px;
    margin-right: 8px;
    color: #e82954;
  }

  .categories .collapsible-body {
    padding: 16px 14px;
  }

  .categories .collapsible-body ul {
    padding: 0;
    margin: 0;
  }

  .categories .collapsible-body ul li {
    list-style: none;
    margin-bottom: 16px;
  }

  .categories .collapsible-body ul li a {
    color: #444;
  }

  .categories .collapsible-body ul li:last-child {
    margin-bottom: 0;
  }

  /*cart*/

  .cart .cart-product.first {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
  }

  .cart .cart-product.second {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
  }

  .cart .cart-product .row {
    margin-bottom: 5px;
  }

  .cart .cart-product .row:last-child {
    margin-bottom: 0;
  }

  .cart .cart-product .remove i {
    text-align: right;
    float: right;
    position: relative;
    top: 3px;
  }

  .cart .cart-product .contents img {
    width: 100%;
    border-radius: 10px;
  }

  .cart .cart-product .contents .price {
    font-weight: 600;
    font-size: 14px;
    color: #e82954;
  }

  .cart .cart-product .contents input {
    width: 50px;
    height: 24px;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 5px;
  }

  .cart .cart-product .button {
    margin-top: 8px;
  }

  .total-pay {
    padding: 7px 15px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  .total-pay .contents h5 {
    margin-top: 10px;
  }

  .total-pay .button {
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .wishlist .cart-product.first {
    padding-bottom: 20px;
  }

  .wishlist .cart-product.second {
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
  }

  .wishlist .cart-product .button {
    margin-top: 0;
  }

  /*checkout*/

  .checkout {
    margin-bottom: 20px;
  }

  .checkout .no-mb {
    margin-bottom: 0;
    margin-top: 20px;
  }

  .product-choosed {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
  }

  .product-choosed.first {
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
  }

  .product-choosed .row {
    margin-bottom: 5px;
  }

  .product-choosed .row:last-child {
    margin-bottom: 0;
  }

  .product-choosed .remove i {
    text-align: right;
    float: right;
    position: relative;
    top: 3px;
  }

  .product-choosed .contents img {
    width: 100%;
    border-radius: 10px;
  }

  .product-choosed .contents input {
    width: 50px;
    height: 24px;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 5px;
  }

  .product-choosed .contents .price {
    font-size: 14px;
    font-weight: 600;
    color: #e82954;
  }

  .checkout-button {
    margin-top: 15px;
  }

  /*product*/

  .product select {
    border: 0;
    border-radius: 5px;
    box-shadow: 0 5px 8px rgba(180, 173, 173, 0.5);
  }

  .product .content img {
    width: 100%;
    display: block;
    border-radius: 10px;
  }

  .product .content h5 {
    color: #e82954;
  }

  .product .pagination {
    margin-top: 30px;
  }

  /*product list*/

  .product-list select {
    border: 0;
    border-radius: 5px;
    box-shadow: 0 5px 8px rgba(180, 173, 173, 0.5);
  }

  .product-list .content {
    margin-bottom: 20px;
  }

  .product-list .content.no-bb {
    border-bottom: 0;
  }

  .product-list .content .product-image {
    float: left;
    margin-right: 20px;
  }

  .product-list .content .product-image img {
    width: 100px;
    border-radius: 10px;
    display: block;
  }

  .product-list .content .product-text a p {
    margin-top: 0;
  }

  .product-list .content .product-text h5 {
    color: #e82954;
  }

  .product-list .content .product-text .button {
    margin-top: 14px;
  }

  .product-list .content .clear {
    clear: both;
  }

  /*team*/

  .team .section-title h3 {
    top: -8px;
  }

  .team .section-title .line {
    margin-top: 1px;
  }

  .team .row:last-child {
    margin-bottom: 0;
  }

  .team .contents {
    background-color: #fff;
    box-shadow: 0 0 30px rgba(224, 224, 224, 0.3);
  }

  .team .contents .text {
    padding: 13px 10px;
  }

  .team .contents .text h4 span {
    float: right;
  }

  .team .contents img {
    width: 100%;
    display: block;
  }

  .team .contents h4 {
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .team .contents .social-link ul {
    padding: 0;
    margin: 0;
  }

  .team .contents .social-link ul li {
    list-style: none;
    display: inline-block;
    margin-right: 8px;
  }

  .team .contents .social-link ul li:last-child {
    margin-right: 0;
  }

  .team-pages .contents {
    background-color: #fff;
  }

  .team-pages .contents .text {
    padding: 13px 10px;
  }

  .team-pages .contents .text h4 span {
    float: right;
  }

  .team-pages .contents .text p {
    padding: 0;
    margin: 0;
  }

  .team-pages .contents img {
    width: 100%;
  }

  .team-pages .contents h4 {
    font-weight: 400;
    font-size: 16px;
  }

  /*testimonial*/

  .testimonial .contents {
    text-align: center;
  }

  .testimonial .contents .post {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
  }

  .testimonial .contents .post p {
    margin: 0;
  }

  .testimonial .contents img {
    width: 66px !important;
    height: auto;
    border-radius: 50%;
    margin: 18px 0 10px;
    margin: 18px auto;
  }

  .testimonial.owl-theme .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
  }

  .owl-theme .owl-dots .owl-dot.active span {
    background: #e82954;
  }

  /*product details*/

  .product-details .contents img {
    width: 100%;
    border-radius: 10px;
  }

  .product-details .owl-theme .owl-nav.disabled + .owl-dots {
    position: relative;
    top: -35px;
    margin-bottom: -36px;
  }

  .product-details .owl-theme .owl-dots {
    display: block;
  }

  .product-details .owl-theme .owl-dots .owl-dot.active span {
    background-color: #e82954;
  }

  .product-details .owl-theme .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    background-color: #fff;
  }

  .product-details .desc-short {
    margin-top: 15px;
  }

  .product-details .desc-short .button {
    margin-top: 5px;
  }

  .product-details .share-media {
    margin: 20px 0;
  }

  .product-details .share-media h5 {
    float: left;
    margin-right: 20px;
    position: relative;
    top: 5px;
  }

  .product-details .share-media ul {
    padding: 0;
    margin: 0;
  }

  .product-details .share-media ul li {
    list-style-type: none;
    display: inline-block;
    margin-right: 10px;
    text-align: center;
  }

  .product-details .share-media ul li:last-child {
    margin-right: 0;
  }

  .product-details .share-media ul li a i {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    background-color: #ddd;
    border-radius: 50%;
    color: #fff;
  }

  .product-details .share-media ul li a .fa-facebook {
    background-color: #3b5999;
  }

  .product-details .share-media ul li a .fa-twitter {
    background-color: #55acee;
  }

  .product-details .share-media ul li a .fa-google {
    background-color: #dd4b39;
  }

  .product-details .desc-short h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .product-details .desc-short h5 {
    color: #e82954;
    margin-bottom: 10px;
  }

  .product-details .desc-long {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 18px;
  }

  .product-details .desc-long h5 {
    margin-bottom: 8px;
  }

  .product-details .review {
    margin-bottom: 20px;
  }

  .product-details .review {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 18px;
    background-color: #fff;
  }

  .product-details .review h5 {
    margin-bottom: 20px;
  }

  .product-details .no-mb {
    margin-bottom: 0;
  }

  .comment-people .contents {
    margin-bottom: 20px;
  }

  .comment-people .contents i {
    color: #e82954;
  }

  .comment-people .reply {
    margin-left: 30px;
  }

  .comment-people .contents .icon img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    float: left;
    margin-right: 10px;
  }

  .comment-people .contents .text {
    overflow: hidden;
  }

  .comment-people .contents .text p:last-child {
    margin-top: 10px;
  }

  .comment-post .comment-title {
    margin-bottom: 20px;
  }

  /*blog*/

  .blog .contents {
    background: #ffffff;
    margin-bottom: 20px;
  }

  .blog .contents img {
    width: 100%;
    border-radius: 10px;
  }

  .blog .contents .text {
    padding: 10px 0 0;
  }

  .blog .contents .text i {
    margin-right: 8px;
    color: #e82954;
  }

  /*blog single*/

  .blog-single .contents img {
    width: 100%;
    border-radius: 10px;
  }

  .blog-single .contents .text {
    padding: 10px 0 0;
  }

  .blog-single .contents .text i {
    margin-right: 8px;
    color: #e82954;
  }

  .blog-single .share-button {
    padding: 12px 0 0;
    margin-bottom: 20px;
  }

  .blog-single .share-button ul {
    padding: 0;
    margin: 0;
  }

  .blog-single .share-button ul li {
    list-style: none;
    display: inline-block;
    margin-right: 10px;
    text-align: center;
  }

  .blog-single .share-button ul li a i {
    font-size: 14px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    color: #fff;
  }

  .blog-single .share-button ul li a .fa-facebook {
    background: #3b5999;
  }

  .blog-single .share-button ul li a .fa-twitter {
    background: #55acee;
  }

  .blog-single .share-button ul li a .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  }

  .blog-single .share-button ul li a .fa-google {
    background: #dd4b39;
  }

  /*pagination*/

  .pagination {
    margin-top: 30px;
  }

  .pagination li.disabled a {
    color: #fff;
    background: #e82954;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, .20);
  }

  .pagination li a {
    box-shadow: 0 5px 8px rgba(128, 128, 128, 0.5);
    border-radius: 50%;
  }

  .pagination li {
    margin-right: 10px;
  }

  .pagination li:last-child {
    margin-right: 0;
  }

  /*about*/

  .about .content img {
    width: 100%;
    border-radius: 10px;
  }

  .about .content h3 {
    margin: 10px 0 5px;
  }

  .about .social-link {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .about .social-link i {
    margin-right: 10px;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
  }

  .about .social-link a .fa-facebook {
    background-color: #3b5999;
  }

  .about .social-link a .fa-twitter {
    background-color: #55acee;
  }

  .about .social-link a .fa-google {
    background-color: #dd4b39;
  }

  /*settings*/

  .settings .profile-photo .contents {
    margin-bottom: 14px;
    border-radius: 0.28571429rem;
  }

  .settings .profile-photo span {
    display: block;
    margin-bottom: 5px;
    color: rgba(0, 0, 0, .87);
    font-size: .92857143em;
    font-weight: 700;
  }

  .settings .profile-photo img {
    width: 80px;
    height: 80px;
  }

  .settings .profile-banner .contents {
    margin-bottom: 14px;
    border-radius: 0.28571429rem;
  }

  .settings .no-mb {
    margin-bottom: 0;
  }

  .settings .profile-banner span {
    display: block;
    margin-bottom: 5px;
    color: rgba(0, 0, 0, .87);
    font-size: .92857143em;
    font-weight: 700;
  }

  .settings .profile-banner img {
    width: 100%;
  }

  .settings .button {
    margin-bottom: 15px;
  }

  .settings input[type="file"]:focus {
    border-color: transparent !important;
  }

  .settings form .no-mb {
    margin-top: 20px;
  }

  /*comment-form*/

  .comment-form {
    padding: 0;
  }

  .comment-form h4 {
    margin-bottom: 20px;
  }

  /*form*/

  form label.active {
    color: #e82954 !important;
  }

  form input {
    border: 0 !important;
    height: 2.5rem !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border-radius: 5px !important;
    background-color: #f5f5f5 !important;
  }

  form input[type="file"] {
    border: 0 !important;
    padding: 0 !important;
    display: block;
  }

  form textarea {
    border: 0 !important;
    padding: 10px;
    box-sizing: border-box !important;
    height: 7rem !important;
    font-size: 1rem;
    border-radius: 5px;
    background-color: #f5f5f5 !important;
  }

  form input:focus {
    border: 0 !important;
    box-shadow: none !important;
    transition: all .3s ease;
  }

  form textarea:focus {
    border: 0 !important;
    box-shadow: none !important;
  }

  form select {
    border: 1px solid #ccc;
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 20px;
  }

  form .button {
    margin-top: 20px;
    text-align: center;
  }

  ::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #555;
  }

  ::-moz-placeholder {
    /* Firefox 19+ */
    color: #555;
  }

  :-ms-input-placeholder {
    /* IE 10+ */
    color: #555;
  }

  :-moz-placeholder {
    /* Firefox 18- */
    color: #555;
  }

  /*sign in*/

  .signin-contents {
    padding: 15px;
    background-color: #fff;
  }

  .sign-in .social-login {
    margin-top: 20px;
  }

  .sign-in .social-login h5 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 400;
  }

  .sign-in .button-facebook {
    background-color: #3b5999;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  .sign-in .button-twitter {
    background-color: #55acee;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  .sign-in .button-linkedin {
    background-color: #0077B5;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  .sign-in .button-google {
    background-color: #dd4b39;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  /*sign up*/

  .signup-contents {
    padding: 15px;
    background-color: #fff;
  }

  .sign-up .social-login {
    margin-top: 20px;
  }

  .sign-up .social-login h5 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 400;
  }

  .sign-up .button-facebook {
    background-color: #3b5999;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  .sign-up .button-twitter {
    background-color: #55acee;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  .sign-up .button-linkedin {
    background-color: #0077B5;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  .sign-up .button-google {
    background-color: #dd4b39;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }

  /*contact*/

  .contact .contact-contents form textarea {
    margin-bottom: 0;
  }

  .contact .contact-contents .button {
    margin-bottom: 15px;
  }

  /*page not found*/

  .page-not-found {
    text-align: center;
    padding: 15px;
    background-color: #fff;
  }

  .page-not-found h2 {
    font-size: 120px;
  }

  .page-not-found h4 {
    font-size: 30px;
    margin-bottom: 18px;
  }

  .page-not-found ul {
    padding: 0;
    margin: 0;
  }

  .page-not-found ul li {
    list-style: none;
    display: inline-block;
    margin: 0 6px;
  }

  .page-not-found ul li a i {
    margin-right: 3px;
  }

  /* profile */

  .profile .profile-banner img {
    width: 65px;
    border-radius: 50%;
    margin-bottom: 10px;
  }

  .profile .profile-banner .content h4 {
    color: #fff;
    margin-bottom: 3px;
  }

  .profile .contents-tabs img {
    margin-top: 0;
  }

  .profile .product .pagination ul {
    margin-bottom: 0;
  }

  /*tabs*/

  .contents-tabs img {
    width: 100%;
    margin-top: 20px;
  }

  .contents-tabs h4 {
    margin-top: 10px;
  }

  .tabs .tab a {
    color: #e82954;
    text-transform: none;
  }

  .tabs .tab a:hover {
    color: #e82954;
  }

  .tabs .tab a.active {
    color: #e82954;
  }

  .tabs .indicator {
    background: #e82954;
  }

</style>
